package com.ssm.zyn.dao;


import com.ssm.zyn.eo.StudentEOpage;
import com.ssm.zyn.model.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 操作数据库方法的对接
 */
@Mapper
@Component
public interface StudentMapper {
    //学生添加
    int insertStudent(Student student);
    //通过ID获取数量
    /*int getSidCount(int sid);*/
    int getStuidCount(String stuid);

    //通过主键修改信息
    int updateStudent(Student student);
    //通过主键删除信息
    int delStudent(Integer sid);
    //根据条件获取相关信息
    List<StudentEOpage> getWhereAll(StudentEOpage studentEOpage);
}
